<%@ include file="/common/taglibs.jsp"%>
<!--分页查询共用的页面-->
<%@ include file="/common/common.jsp"%>

<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">




<head>
    <!---->
    <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
    <script src="//code.jquery.com/jquery-1.9.1.js"></script>
    <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
    <link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css">
    <script>
    $(function () {
      $("#tabs").tabs();
    });
    window.onload = function () {
        /*
        加载9个选项卡
        */
       //车辆id
       var vehicleInfo = "?vehicleId=${vehicleId}";
       //地址列表
        var urls = new Array();

        //语音对讲，暂时不整合
        //urls[0]="<%=ApplicationPath%>/videoCommand/viewTalkVideoTerminal.action" + vehicleInfo;
        //透明传输，不整合
        // urls[4] = "<%=ApplicationPath%>/transparentSend/view.action" + vehicleInfo;
        //广播
        // urls[7]="<%=ApplicationPath%>/videoCommand/viewBroadcastVideoTerminal.action" + vehicleInfo;

        //信息下发
        urls[0] ="<%=ApplicationPath%>/sendInformation/view.action" + vehicleInfo;
        //调度信息下发
        urls[1] = "<%=ApplicationPath%>/sendText/view.action" + vehicleInfo;
        //提问下发，不整合,有bug
        //  urls[2] = "<%=ApplicationPath%>/sendQuestion/view.action" + vehicleInfo;

        //透明传输
        urls[2] = "<%=ApplicationPath%>/transparentSend/view.action" + vehicleInfo;
        //终端控制
        urls[3] = "<%=ApplicationPath%>/terminalControl/view.action" + vehicleInfo;
        //车门控制
        urls[4] = "<%=ApplicationPath%>/doorControl/view.action" + vehicleInfo;
        //录音
        urls[5] = "<%=ApplicationPath%>/audioRecorder/view.action" + vehicleInfo;
        //监听指令
        urls[6] = "<%=ApplicationPath%>/listenTerminal/view.action" + vehicleInfo;
        //临时位置跟踪
        urls[7] = "<%=ApplicationPath%>/tempTrack/view.action" + vehicleInfo;
       
       
       
       


        //循环加载页面
        for (var i = 0; i < 8; i++) {
            try {
                //提问下发现不加载
                if (urls[i] != "") {
                    console.log("加载页面：" + urls[i]);
                    $("#tabs-" + (i + 1)).load(urls[i]);
                }
        
            } catch (error) {
                console.log(error);
            }
        }
    };
    function closeWindow(){
        $("body").stopTime();
        window.parent.closeCommandWindow();
    };
  </script>
</head>

<body>
    <!--整个面板显示9个选项卡-->
    <div id="tabs" class="tab">
        <ul id="uls">
            <li><a href="#tabs-1">信息下发</a></li>
            <li><a href="#tabs-2">调度信息下发</a></li>
            <li><a href="#tabs-3">透明传输</a></li>
            <li><a href="#tabs-4">终端控制</a></li>
            <li><a href="#tabs-5">车门控制</a></li>
            <li><a href="#tabs-6">录音</a></li>
            <li><a href="#tabs-7">监听命令</a></li>
            <li><a href="#tabs-8">临时位置跟踪</a></li>
        </ul>
        <div id="tabs-1">
            <p>信息下发</p>
        </div>
        <div id="tabs-2">
            <p>调度信息下发</p>
        </div>   
        <div id="tabs-3">
            <p>透明传输</p>
        </div>   
        <div id="tabs-4">
            <p>终端控制</p>
        </div>  
        <div id="tabs-5">
            <p>车门控制</p>
        </div> 
        <div id="tabs-6">
            <p>录音</p>
        </div> 
        <div id="tabs-7">
            <p>监听命令</p>
        </div>
        <div id="tabs-8">
            <p>临时位置跟踪</p>
        </div>
    </div>
    <div>
        <p align="center" ><input type="button"  style="width:140px;height:25px;"  id="exitBtn" value="关闭" onclick="closeWindow();"/></p>
    </div>
    
</body>
</html>